package com.rodirod.vrmonitor;

import android.view.Menu;

public interface Constants {

	/**
	 * Key for preferences persistence
	 */
	public static final String KEY_PREFS = "virtual_regatta";
	public static final String P_USER_CODE = "user_code";

	/**
	 * keys for option menu
	 */
	 public static final int MENU_OPTION_ADD_RACE = Menu.FIRST;
	 public static final int MENU_OPTION_CONFIG = Menu.FIRST + 1;
	 public static final int MENU_OPTION_ABOUT = Menu.FIRST + 2;
	 public static final int MENU_OPTION_QUIT = Menu.FIRST + 3;

	/**
	 * Keys for regate data (used by RegateManager)
	 */
	public static final String M_REGATE_INFO = "info";
	public static final String M_REGATE_KEY = "key";
	public static final String M_REGATE_URL = "url";
	public static final String M_REGATE_NAME = "name";
	public static final String M_REGATE_ICON = "icon";
	public static final String M_REGATE_ACTIVITY = "activity";

	/**
	 *  keys for regate info data (inside maps), used by RegateInfo
	 */
	// icon id
	public static final String M_ICON = "icon";
	// title of the field
	public static final String M_TITLE = "title";
	// value of the field
	public static final String M_VALUE = "value";
	// previous value of the field
	public static final String M_VALUE_LAST = "value_last";
	// reference value of the field (used to compute alarm)
	public static final String M_VALUE_REF = "value_ref";
	// monitor property (up, down, alarm, none)
	public static final String M_MONITOR = "monitor";
	// alarm state (used if monitor=alarm) : on / off
	public static final String M_ALARM_STATE = "alarm";

	/**
	 *  Extra data key
	 */
	public static final String M_EXTRA_REGATE_NAME = "com.rodirod.InfoViewActivity.RegateName";
	public static final String M_EXTRA_NOTIFICATION_ID = "com.rodirod.InfoViewActivity.NotificationID";
	
	/**
	 *  define values for the M_Monitor property (must be the order value in the context_menu)
	 */
	public static final int I_MONITORED_UP    = 0;
	public static final int I_MONITORED_DOWN  = 1;
	public static final int I_MONITORED_ALARM = 2;
	public static final int I_MONITORED_NONE  = 3;
	
	/**
	 * define values for the alarm state
	 */
	public static final int I_ALARM_OFF   = 0;
	public static final int I_ALARM_ON    = 1;

	/**
	 *  value in minutes for the supervision timer
	 */
	public static final int I_TIMER_PERIOD_MN = 10;
	
	/**
	 * Max number of races that can be follow at a time
	 */
	public static int MAX_RACE = 10;
}
